﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace TfsAlert.Workflows
{
    partial class RS232
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference1 = new System.Workflow.Activities.Rules.RuleConditionReference();
            this.RelayOffDelay = new System.Workflow.Activities.DelayActivity();
            this.relayOff1 = new TfsAlert.Core.Activities.RelayOff();
            this.RelayOnDelay = new System.Workflow.Activities.DelayActivity();
            this.relayOn1 = new TfsAlert.Core.Activities.RelayOn();
            this.RelayDelay = new System.Workflow.Activities.SequenceActivity();
            this.TerminateRelay = new System.Workflow.Activities.HandleExternalEventActivity();
            this.whileActivity2 = new System.Workflow.Activities.WhileActivity();
            this.ActivateRelay = new System.Workflow.Activities.HandleExternalEventActivity();
            this.sequenceActivity2 = new System.Workflow.Activities.SequenceActivity();
            this.sequenceActivity3 = new System.Workflow.Activities.SequenceActivity();
            this.parallelActivity1 = new System.Workflow.Activities.ParallelActivity();
            // 
            // RelayOffDelay
            // 
            this.RelayOffDelay.Name = "RelayOffDelay";
            this.RelayOffDelay.TimeoutDuration = System.TimeSpan.Parse( "00:00:20" );
            // 
            // relayOff1
            // 
            this.relayOff1.Name = "relayOff1";
            activitybind1.Name = "RS232";
            activitybind1.Path = "RelayPort";
            this.relayOff1.SetBinding( TfsAlert.Core.Activities.RelayOff.RelayPortProperty, ( (System.Workflow.ComponentModel.ActivityBind)( activitybind1 ) ) );
            // 
            // RelayOnDelay
            // 
            this.RelayOnDelay.Name = "RelayOnDelay";
            this.RelayOnDelay.TimeoutDuration = System.TimeSpan.Parse( "00:00:10" );
            // 
            // relayOn1
            // 
            this.relayOn1.Name = "relayOn1";
            activitybind2.Name = "RS232";
            activitybind2.Path = "RelayPort";
            this.relayOn1.SetBinding( TfsAlert.Core.Activities.RelayOn.RelayPortProperty, ( (System.Workflow.ComponentModel.ActivityBind)( activitybind2 ) ) );
            // 
            // RelayDelay
            // 
            this.RelayDelay.Activities.Add( this.relayOn1 );
            this.RelayDelay.Activities.Add( this.RelayOnDelay );
            this.RelayDelay.Activities.Add( this.relayOff1 );
            this.RelayDelay.Activities.Add( this.RelayOffDelay );
            this.RelayDelay.Name = "RelayDelay";
            // 
            // TerminateRelay
            // 
            this.TerminateRelay.EventName = "OnRelayOff";
            this.TerminateRelay.InterfaceType = typeof( TfsAlert.Core.WorkflowServices.IRelayService );
            this.TerminateRelay.Name = "TerminateRelay";
            this.TerminateRelay.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>( this.TerminateRelay_Invoked );
            // 
            // whileActivity2
            // 
            this.whileActivity2.Activities.Add( this.RelayDelay );
            ruleconditionreference1.ConditionName = "RelayOnLoop";
            this.whileActivity2.Condition = ruleconditionreference1;
            this.whileActivity2.Name = "whileActivity2";
            // 
            // ActivateRelay
            // 
            this.ActivateRelay.EventName = "OnRelayOn";
            this.ActivateRelay.InterfaceType = typeof( TfsAlert.Core.WorkflowServices.IRelayService );
            this.ActivateRelay.Name = "ActivateRelay";
            this.ActivateRelay.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>( this.ActivateRelay_Invoked );
            // 
            // sequenceActivity2
            // 
            this.sequenceActivity2.Activities.Add( this.TerminateRelay );
            this.sequenceActivity2.Name = "sequenceActivity2";
            // 
            // sequenceActivity3
            // 
            this.sequenceActivity3.Activities.Add( this.ActivateRelay );
            this.sequenceActivity3.Activities.Add( this.whileActivity2 );
            this.sequenceActivity3.Name = "sequenceActivity3";
            // 
            // parallelActivity1
            // 
            this.parallelActivity1.Activities.Add( this.sequenceActivity3 );
            this.parallelActivity1.Activities.Add( this.sequenceActivity2 );
            this.parallelActivity1.Name = "parallelActivity1";
            // 
            // RS232
            // 
            this.Activities.Add( this.parallelActivity1 );
            this.Name = "RS232";
            this.CanModifyActivities = false;

        }

        #endregion

        private DelayActivity RelayOffDelay;
        private SequenceActivity RelayDelay;
        private WhileActivity whileActivity2;
        private SequenceActivity sequenceActivity3;
        private TfsAlert.Core.Activities.RelayOff relayOff1;
        private TfsAlert.Core.Activities.RelayOn relayOn1;
        private DelayActivity RelayOnDelay;
        private HandleExternalEventActivity TerminateRelay;
        private SequenceActivity sequenceActivity2;
        private ParallelActivity parallelActivity1;
        private HandleExternalEventActivity ActivateRelay;
































    }
}
